﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="export_by_customer.aspx.cs" Inherits="LinkCard.AdminCP.Reports.export_by_customer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table id="table1" class="gtable sortable" >
         <tr>
                <td valign="top" style="font-size: large; font-weight: bold;">
                    Báo cáo chi tiết theo Khách hàng
                </td>
            </tr>
            <thead>
              <tr>
                <th>Ngày</th>
                <th style="text-align:right">Mã thẻ</th>
                <th style="text-align:right">Tên Khách hàng</th>
                <th style="text-align:right">Số hoá đơn</th>
                <th style="text-align:right">Hình thức thanh toán</th>
                <th style="text-align:right">Tổng tiền/điểm thanh toán</th>
                <th ></th>
              </tr>
            </thead>
            <tbody>
            <asp:Repeater ID="msgList" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td >
                                    <%# Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "PayDate")).ToString("dd/MM/yyyy")%>
                                </td>
                                <td align="right">
                                    <%# DataBinder.Eval(Container.DataItem, "CardNumber")%>
                                </td>
                                <td align="right">
                                    <%# DataBinder.Eval(Container.DataItem, "Fullname") %>
                                </td>
                                <td align="right">
                                    <%# LinkCard.AdminCP.Common.Utility.sDecimal(LinkCard.AdminCP.Common.ConvertUtility.ToDecimal(DataBinder.Eval(Container.DataItem, "PayID"))) %>
                                </td>
                                 <td align="right">
                                   <%#(DataBinder.Eval(Container.DataItem,"PayMethod").ToString()== "0" )? " Tiền mặt ": " Điểm "%>
                                </td>
                                <td align="right">
                                    <%# LinkCard.AdminCP.Common.Utility.sDecimal(LinkCard.AdminCP.Common.ConvertUtility.ToDecimal(DataBinder.Eval(Container.DataItem, "PayAmount")))%>
                                </td>
                              
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                    <tr id="msgNoData" runat="server">
                        <td colspan="4" align="center">
                            Không có dữ liệu!
                        </td>
                    </tr>
              
              
            </tbody>
          </table>
    </div>
    </form>
</body>
</html>
